package cn.ycc1.mymcp.sse.client.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * 测试控制器请求
 * @author ycc
 * @date 2025/4/30
 */
@RestController
@CrossOrigin(origins = "*")  // 允许所有源访问该控制器
public class TestController {
    // 简单字符串响应
//    @GetMapping("/test")
//    public Mono<String> test() {
//        return Mono.just("test");
//    }
    @GetMapping("/test")
    public String test() {
        return "test";
    }
}
